package com.acme.bankapp.exceptions;

import com.acme.bankapp.domain.account.Account;

public class OverDraftLimitExceededException extends NoEnoughFundsException {
    private Account account;

	public OverDraftLimitExceededException(final String string) {
        super(string);
    }

    public OverDraftLimitExceededException(final Account account) {
        this.account = account;
    }

    public double getAccountBalance() {
        return account.getBalance();
    }

    public double maximumAmountToWithdraw() {
        return account.maximumAmountToWithdraw();
    }
}
